<html>
    <head>
        <title>{% block title %}Threaded Forum{% endblock %}</title>
        {% block script %}{% endblock %}
    </head>
    <body>
        <div>
            {% if user.is_authenticated %}Hello 
                {% if user.first_name and user.last_name %}
                    <strong>{{user.first_name}} {{user.last_name}}</strong>(<a href="{% url up_home %}">{{user.username}}</a>)
                {% else %}
                    <a href="{% url up_home %}">{{user.username}}</a>
                {% endif %}
                    | <a href="{% url auth_logout %}"/>Logout</a>
                {% if not user.is_active %}
                    <emp>(you are not activated. click <a href="{% url auth_inactive %}">here</a>)</emp>
                {%endif%}
            {% else %}
                <a href="{% url auth_login %}">Login</a> | <a href="{% url registration_register %}">Register</a>
            {% endif %}
        </div>
        {% block content %}{% endblock %}
    </body>
    {% block footer %}{% endblock %}
</html>